//package <set your test package>;
import com.experitest.client.Client;
import org.junit.*;
/**
 *
 *
*/
public class demo {
    private String host = "localhost";
    private int port = 8888;
    private String projectBaseDirectory = "C:\\Users\\oziransky\\workspace\\project9";
    protected Client client = null;

    @Before
    public void setUp(){
        client = new Client(host, port);
        client.setProjectBaseDirectory( projectBaseDirectory);
        client.setReporter("xml", "reports", "demo");
    }

    @Test
    public void testdemo(){
        client.setApplicationTitle("ios_app:iPod");
        client.launch("com.experitest.ExperiBank/.LoginActivity", true, false);
        client.elementSendText("default", "Username", 0, "company");
        client.elementSendText("default", "Password", 0, "company");
        client.click("default", "Login", 0, 1);
        client.click("default", "Logout", 0, 1);
    }
    @After
    public void tearDown(){
        client.generateReport();
    }
}
